package com.klasster.recruitmentPlatform.domain.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class PermissionVO {

    private String name;

    private String code;

    private String type;

    private String path;

    private String redirect;

    private String icon;

    private String component;

    private String layout;

    private Boolean keepAlive;

    private String method;

    private String description;

    private Boolean show;

    private Boolean enable;

    private Integer order;

    private final List<PermissionVO> children = new ArrayList<>();

    public void addChildren(PermissionVO permission) {
        children.add(permission);
    }

}
